﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication5
{
    
    public static class UserProvider
    {
        private static IUser _userProvider;

        public static IUser MyUserProvider
       {
           get
           {
               if (_userProvider == null)
               {
                   _userProvider = (IUser)Assembly.Load("ConsoleApplication5").CreateInstance("ConsoleApplication5.UserMgr");
                   //_userProvider = (IUser)new UserMgr();
               }
               return _userProvider;
           }
       }
    }
}
